package com.ssh.action.users;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.ssh.service.UserService;

public final class ListUserAction extends ActionSupport {

	private UserService userService;

	public UserService getUserService() {
		return userService;
	}



	public void setUserService(UserService userService) {
		this.userService = userService;
	}



	@SuppressWarnings("unchecked")
	@Override
	public String execute() throws Exception {
		

		Map request = (Map)ActionContext.getContext().get("request");
		request.put("list",userService.findAll());
		return SUCCESS;
	}
	
	
}
